#ifndef FINDPASSWORDWIDGET_H
#define FINDPASSWORDWIDGET_H

#include <QDialog>
#include <QTimer>
#include "userservice.h"

namespace Ui {
class FindPasswordWidget;
}

class FindPasswordWidget : public QDialog
{
    Q_OBJECT

public:
    explicit FindPasswordWidget(QWidget *parent = nullptr);
    ~FindPasswordWidget();

    void showAndInit();

private slots:
    void on_pushButtonGetVerifyCode_clicked();

    void on_pushButtonCancel_clicked();

    void on_pushButtonSubmit_clicked();

private:
    Ui::FindPasswordWidget *ui;

    QTimer *myTimer;
    QString verifyCode;
    QString username;

    UserService userService;
};

#endif // FINDPASSWORDWIDGET_H
